package com.sdgakj.dto;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.bouncycastle.asn1.dvcs.Data;

import java.io.Serializable;
import java.util.Arrays;
import java.util.Date;
import java.util.List;

public class FeedDTO implements Serializable {

    private static final long serialVersionUID = 1L;

    @Override
    public String toString() {
        return ToStringBuilder.reflectionToString(this);
    }

    private Long id;
    private CustomerSimpleDTO customer; //
    private FeedTagDTO feedTag; // 标签类型
    private String content; // 发帖内容
    private String[] picList; // 保存图片路径
    private String location; // 详细定位地址
    private String longitude; // 经度
    private String latitude; // 纬度
    private List<FeedCommentDTO> topCommentList; // 评论
    private Boolean liked; // 被赞过
    private Integer viewCount; // 浏览数量
    private Integer likeCount; // 点赞数量
    private Integer commentCount; // 评论数量
    private Integer shareCount; // 分享数量
    private Date createTime; // 创建时间
    private Boolean isTop;//是否顶置
    private Long familyId;

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    private Long userId;

    public Long getFamilyId() {
        return familyId;
    }

    public void setFamilyId(Long familyId) {
        this.familyId = familyId;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public FeedTagDTO getFeedTag() {
        return feedTag;
    }

    public void setFeedTag(FeedTagDTO feedTag) {
        this.feedTag = feedTag;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String[] getPicList() {
        return picList;
    }

    public void setPicList(String[] picList) {
        this.picList = picList;
    }

    public String getLocation() {
        return location;
    }

    public void setLocation(String location) {
        this.location = location;
    }

    public String getLongitude() {
        return longitude;
    }

    public void setLongitude(String longitude) {
        this.longitude = longitude;
    }

    public String getLatitude() {
        return latitude;
    }

    public void setLatitude(String latitude) {
        this.latitude = latitude;
    }

    public List<FeedCommentDTO> getTopCommentList() {
        return topCommentList;
    }

    public void setTopCommentList(List<FeedCommentDTO> topCommentList) {
        this.topCommentList = topCommentList;
    }

    public Integer getViewCount() {
        return viewCount;
    }

    public void setViewCount(Integer viewCount) {
        this.viewCount = viewCount;
    }

    public Integer getLikeCount() {
        return likeCount;
    }

    public void setLikeCount(Integer likeCount) {
        this.likeCount = likeCount;
    }

    public Integer getCommentCount() {
        return commentCount;
    }

    public void setCommentCount(Integer commentCount) {
        this.commentCount = commentCount;
    }

    public Integer getShareCount() {
        return shareCount;
    }

    public void setShareCount(Integer shareCount) {
        this.shareCount = shareCount;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public CustomerSimpleDTO getCustomer() {
        if (customer==null){
            customer=new CustomerSimpleDTO();
        }
        return customer;
    }

    public void setCustomer(CustomerSimpleDTO customer) {
        this.customer = customer;
    }

    public Boolean getLiked() {
        return liked;
    }

    public void setLiked(Boolean liked) {
        this.liked = liked;
    }

    public Boolean getIsTop() {
        return isTop;
    }

    public void setIsTop(Boolean isTop) {
        this.isTop = isTop;
    }

}
